package com.internal.SharedModule.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Banner extends Composite {

	public Banner() {

		VerticalPanel panel = new VerticalPanel();
		panel.setSize("100%", "100%");
		panel.setSpacing(0);

		HorizontalPanel mainPanel = new HorizontalPanel();
		mainPanel.setHeight("130px");
		mainPanel.setStyleName("banner-style");
		mainPanel.setSpacing(0);

		VerticalPanel panel1 = new VerticalPanel();
		HTML html1 = new HTML("جمهورية مصر العربية");
		html1.setStyleName("banner-title");
		panel1.add(html1);
		panel1.setCellHorizontalAlignment(html1,
				HasHorizontalAlignment.ALIGN_CENTER);

		HTML html2 = new HTML("وزارة الصحة و السكان");
		html2.setStyleName("banner-title");
		panel1.add(html2);
		panel1.setCellHorizontalAlignment(html2,
				HasHorizontalAlignment.ALIGN_CENTER);

		HTML html3 = new HTML(
				"الإدارة المركزية للمؤسسات العلاجية غير الحكومية والترخيص");
		html3.setStyleName("banner-title");
		panel1.add(html3);
		panel1.setCellHorizontalAlignment(html3,
				HasHorizontalAlignment.ALIGN_CENTER);

		mainPanel.add(panel1);
		mainPanel.setCellWidth(panel1, "50%");
		mainPanel.setCellHorizontalAlignment(panel1,
				HasHorizontalAlignment.ALIGN_RIGHT);

		VerticalPanel imagPanel = new VerticalPanel();
		Image image = new Image("image/ministry_logo.JPG");
		image.setHeight("120px");
		imagPanel.add(image);
		imagPanel.setCellHorizontalAlignment(image,
				HasHorizontalAlignment.ALIGN_RIGHT);

		mainPanel.add(imagPanel);
		mainPanel.setCellHorizontalAlignment(imagPanel,
				HasHorizontalAlignment.ALIGN_RIGHT);

		panel.add(mainPanel);

		
		initWidget(panel);

	}

}
